<div id="menu">
<?php $alias = $this->urlParams('alias');?>
<ul class="navigation">
	<li class="first home <?php print ($alias == 'home') ? 'active' : ''?>">
		<a href="<?php print $this->url(array('alias' => 'home'),'site')?>"><span><b>Strona główna</b></span></a></li>
	<li class="about <?php print ($alias == 'o-firmie') ? 'active' : ''?>">
		<a href="<?php print $this->url(array('alias' => 'o-firmie'),'site')?>"><span><b>O firmie</b></span></a></li>
	<li class="offer <?php print ($alias == 'oferta') ? 'active' : ''?>">
		<a href="<?php print $this->url(array('alias' => 'oferta'),'site')?>"><span><b>Oferta</b></span></a></li>
	<li class="references <?php print ($alias == 'referencje') ? 'active' : ''?>">
		<a href="<?php print $this->url(array('alias' => 'referencje'),'site')?>"><span><b>Referencje</b></span></a></li>
	<li class="allow <?php print ($alias == 'zezwolenia') ? 'active' : ''?>">
		<a href="<?php print $this->url(array('alias' => 'zezwolenia'),'site')?>"><span><b>Zezwolenia</b></span></a></li>
	<li class="gallery <?php print ($this->urlParams('module') == 'gallery') ? 'active' : ''?>">
		<a href="gallery/album/display/locale/pl/id/34"><span><b>Galeria</b></span></a></li>
	<li class="last contact <?php print ($alias == 'kontakt') ? 'active' : ''?>">
		<a href="<?php print $this->url(array('alias' => 'kontakt'),'site')?>"><span><b>Kontakt</b></span></a></li>
</ul>
</div>

<div id="flash">
<script language="javascript">
	if (AC_FL_RunContent == 0) {
		alert("This page requires AC_RunActiveContent.js.");
	} else {
		AC_FL_RunContent(
			'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0',
			'width', '840',
			'height', '210',
			'src', '<?php print PUBLIC_TEMPLATES_DIRNAME . '/' . KX_TEMPLATE_SKIN . '/flash/baner' ?>',
			'quality', 'high',
			'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
			'align', 'middle',
			'play', 'true',
			'loop', 'true',
			'scale', 'showall',
			'wmode', 'transparent',
			'devicefont', 'false',
			'id', 'baner',
			'bgcolor', '#ffffff',
			'name', 'baner',
			'menu', 'true',
			'allowFullScreen', 'false',
			'allowScriptAccess','sameDomain',
			'movie', '<?php print PUBLIC_TEMPLATES_DIRNAME . '/' . KX_TEMPLATE_SKIN . '/flash/baner' ?>',
			'salign', ''
			); //end AC code
	}

</script>
<noscript>
	<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="840" height="210" id="baner" align="middle">
	<param name="allowScriptAccess" value="sameDomain" />
	<param name="allowFullScreen" value="false" />
	<param name="movie" value="<?php print PUBLIC_TEMPLATES_DIRNAME . '/' . KX_TEMPLATE_SKIN . '/flash/baner.swf' ?>" /><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" />
		<embed src="<?php print PUBLIC_TEMPLATES_DIRNAME . '/' . KX_TEMPLATE_SKIN . '/flash/baner.swf' ?>" quality="high" bgcolor="#ffffff" width="840" height="210" name="baner" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
	</object>
</noscript>

</div>

<script type="text/javascript">
<!--
function go(newPage) {
	if (window.document.baner) {
		window.document.baner.SetVariable("page", newPage);
	}
}
<?php
	if ($alias == 'home') {
		print 'go(1);';	
	} else
	if ($alias == 'o-firmie') {
		print 'go(2);';
	} else
	if ($alias == 'do-pobrania') {
		print 'go(8);';
	} else
	if ($alias == 'oferta') {
		print 'go(3);';
	} else
	if ($alias == 'referencje') {
		print 'go(4);';
	} else
	if ($alias == 'zezwolenia') {
		print 'go(5);';
	} else
	if ($alias == 'kontakt') {
		print 'go(6);';
	} else
	if ($this->urlParams('module') == 'gallery') {
		print 'go(7);';
	} else {
		print 'go(1);';	
	}
?>
//-->
</script>
